package com.gym.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gym.pojo.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoService extends IService<UserInfo> {
    //插入
//    int insert(UserInfo userInfo);
////    //修改
////    int update(UserInfo userInfo);
////    //删除
////    int delete(Integer userId);
    //根据用户名和密码查询
    UserInfo queryByUsernameAndPassword(@Param("userName") String username, @Param("passWord") String password);
    //查询总数
    Integer userCount();
////    //查询所有
////    List<UserInfo> getQueryAll();
////    //根据名字查询
////    UserInfo queryByName(@Param("userName") String username);

//    Results<UserInfo> findAllByUsernamePage(String userName,Integer pageNum,Integer limit);
}
